package com.hh.bss.mobile.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;

import com.hh.bss.base.BaseSpringController;
import com.hh.bss.common.page.Page;
import com.hh.bss.project.service.ContractJobCvRecomService;
import com.hh.bss.project.vo.query.ContractJobCvRecomQuery;
@Controller
public class RecomController extends BaseSpringController  {
	private ContractJobCvRecomService contractJobCvRecomService;
	public void setContractJobCvRecomServiceImpl(ContractJobCvRecomService service) {
		this.contractJobCvRecomService = service;
	}
	public ModelAndView outerRecomPage(HttpServletRequest request, HttpServletResponse response,ContractJobCvRecomQuery contractJobCvRecomQuery) throws IOException {
		Page page = contractJobCvRecomService.findJobRecomCvPage(contractJobCvRecomQuery);
		//query.getPageSize(), query.getPageNumber()
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/mobile/recomManagerPage");
		
		mv.addObject("pages", page);
		mv.addObject("query", contractJobCvRecomQuery);
		response.setCharacterEncoding("UTF-8");
		return mv;
		
	}
}
